import Vue from "vue";
import Vuex from 'vuex'

import userStore from './modules/userStore'
import goodsStore from './modules/goodsStore'
import cartStore from './modules/cartStore'
import addressStore from './modules/addressStore'
import ordersStore from './modules/ordersStore'
import commentStore from './modules/commentStore'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        userStore,
        goodsStore,
        cartStore,
        addressStore,
        ordersStore,
        commentStore
    }
})